package cn.com.nes.mybatis.agent.ope.mapper;

import cn.com.nes.mybatis.agent.ope.entity.SalePriceDetail;
import cn.com.nes.site.entity.vo.crm.SalePriceMasterVO;
import cn.com.nes.site.service.crm.order.dto.SalePriceDetailDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 销售订单产品信息Mapper
 *
 * @Author: ShenWei
 * @Date: 2024/03/15/14:03
 */
public interface SalePriceDetailMapper extends BaseMapper<SalePriceDetail> {
    List<SalePriceDetailDTO> getDetailList(@Param("priceSheetId") Long priceSheetId);

    List<Long> getDetailIdList(@Param("priceSheetId") Long priceSheetId);

    SalePriceDetailDTO getPriceDetail(@Param("id") Long id);

    void delDetail(@Param("vo") SalePriceMasterVO vo);

    List<SalePriceDetail> getSalePriceDetatils(@Param("priceMasterId") Long priceMasterId);
}
